import request from '@/utils/yzy/request'
// import { jxsjType } from '@/types/mmm/jmsjType'
const Mdatastatistics = {
  getPeopleContractApi: (data: any) =>
    request.post('/api/getSRSSByMonths', data),
  //统计居民总数签约居民数待处理已完成服务量
  postSTRSRSDSDedApi: () => request.post('/api/getSTRSRSDSDed'),
  //统计指定月数的居民数量签约量服务量
  postSRSSByMonthsApi: (months: number) =>
    request.post('/api/getSRSSByMonths', { months }),
  //获取机构表
  postAllChcsOrganApi: () => request.post('/api/getAllChcsOrgan'),
  //根据机构id获取医生团队
  postTeamByOrganIdApi: (organId: string) =>
    request.post('/api/getTeamByOrganId', { organId }),
  //根据团队id查询医生简单信息
  postBasicDoctorByTeamIdApi: (teamId: string) =>
    request.post('/api/getBasicDoctorByTeamId', { teamId }),
  //根据团队id查询医生信息(签约人数，评分，评分人数)
  postDoctorBasicByTeamIdApi: (teamId: string) =>
    request.post('/api/getDoctorBasicByTeamId', { teamId }),
  // request({
  //   method: 'POST',
  //   url: '/api/getDoctorBasicByTeamId',
  //   data: { teamId },
  // }),
  //分页搜索查询居民信息
  postResidentBySOTSLByPageApi: (teamId: string) =>
    request.post('/api/getResidentBySOTSLByPage', { teamId }),
  // request({
  //   method: 'POST',
  //   url: '/api/getResidentBySOTSLByPage',
  //   data: { teamId },
  // }),
  //获取居民基本信息（性别）
  postAllBasicResidentBySearchApi: (data: any) =>
    request.post('/api/getAllBasicResidentBySearch', { data }),
  //根据时间获取签约信息

  //居民健康异常统计
  postdatatypeApi: () => request.post('/api/getdatatype'),
  //获取居民标签数据
  getPeopleLabelApi: () => request.post('/api/getResidentLabelStatistics'),

  //本周签约概况
  postThisWeekSignApi: () => request.post('/api/getThisWeekSign'),

  //体重
  postWeightByResidentIdApi: (residentId: string) =>
    request.post('/api/getWeightByResidentId', { residentId }),
  //心率
  postHeartRateByResidentIdApi: () =>
    request.post('/api/getHeartRateByResidentId'),
  //血糖
  postBloodSugarByResidentIdApi: () =>
    request.post('/api/getBloodSugarByResidentId'),
  //血压
  postBloodPressureByResidentIdApi: () =>
    request.post('/api/getBloodPressureByResidentId'),
  //根据id查询居民基本信息，标签以及健康档案
  postResidentLabelHealthByIdApi: (residentId: string) =>
    request.post('/api/getResidentLabelHealthById', { residentId }),
  //根据id取得一个婚姻状态表数据
  postChcsMaritalstatusByIdApi: (id: string) =>
    request.post('/api/getChcsMaritalstatusById', { id }),
  //根据id取得一个费用类型表数据
  postChcsExpensetypeByIdApi: (id: string) =>
    request.post('/api/getChcsExpensetypeById', { id }),
  //根据id取得一个民族类型表数据
  postChcsNationByIdApi: (id: string) =>
    request.post('/api/getChcsNationById', { id }),
  //根据id取得户籍类型
  postChcsResidenceByIdApi: (id: string) =>
    request.post('/api/getChcsResidenceById', { id }),
  //根据id获取居民血型
  postChcsBloodtypeByIdApi: (id: string) =>
    request.post('/api/getChcsBloodtypeById', { id }),

  //根据居民详情id查询签约信息
  postServiceByRIdApi: (residentId: string) =>
    request.post('/api/getServiceByRId', { residentId }),
  //根据居民id查询生效签约的机构团队医生服务包
  postOTDSByResidentIdApi: (residentId: string) =>
    request.post('/api/getOTDSByResidentId', { residentId }),
  //根据居民id查询服务机构团队医生服务包服务项
  postSDOTDSSIByResidentIdApi: (residentId: string) =>
    request.post('/api/getSDOTDSSIByResidentId', { residentId }),

  //服务包使用情况
  postAllChcsServiceApi: () => request.post('/api/getAllChcsService'),
}
export default Mdatastatistics
